package iwhr.nsbd.util;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class sishewuru {
        public static double round(double number, int decimalPlaces) {
            BigDecimal decimal = new BigDecimal(number);
            decimal = decimal.setScale(decimalPlaces, RoundingMode.HALF_UP);
            return decimal.doubleValue();
        }


}

